//
//  RTLCollectionViewFlowLayout.m
//  bliss
//
//  Created by mac on 2023/9/27.
//

#import "RTLCollectionViewFlowLayout.h"

@implementation RTLCollectionViewFlowLayout

-(UIUserInterfaceLayoutDirection)effectiveUserInterfaceLayoutDirection {

    if ([[[[NSBundle mainBundle] preferredLocalizations] firstObject] hasPrefix:@"ar"]) {
        return UIUserInterfaceLayoutDirectionRightToLeft;
    }
    return UIUserInterfaceLayoutDirectionLeftToRight;
}

- (BOOL)flipsHorizontallyInOppositeLayoutDirection{
    return  YES;
}

@end
